package cn.tedu.demo3;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.demo3");
        Person p1 = context.getBean(Person.class);
        p1.play();
    }
}
